<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Quick start &mdash; toughradius 5.0 文档</title>
    
    <link rel="stylesheet" href="../static/default.css" type="text/css" />
    <link rel="stylesheet" href="../static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '5.0',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../static/jquery.js"></script>
    <script type="text/javascript" src="../static/underscore.js"></script>
    <script type="text/javascript" src="../static/doctools.js"></script>
    <script type="text/javascript" src="../static/translations.js"></script>
    <link rel="top" title="toughradius 5.0 文档" href="../index.html" />
    <link rel="next" title="Configuration" href="configuration.html" />
    <link rel="prev" title="TOUGHRADIUS - Beautiful open source RadiusServer" href="../index.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>导航</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="总目录"
             accesskey="I">索引</a></li>
        <li class="right" >
          <a href="configuration.html" title="Configuration"
             accesskey="N">下一页</a> |</li>
        <li class="right" >
          <a href="../index.html" title="TOUGHRADIUS - Beautiful open source RadiusServer"
             accesskey="P">上一页</a> |</li>
        <li><a href="../index.html">toughradius 5.0 文档</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="quick-start">
<h1>Quick start<a class="headerlink" href="#quick-start" title="永久链接至标题">¶</a></h1>
<div class="section" id="install">
<h2>Install<a class="headerlink" href="#install" title="永久链接至标题">¶</a></h2>
<p>First of all, you need a Python runtime environment and install the pip package manage tool</p>
<div class="highlight-python"><div class="highlight"><pre>pip install toughradius
</pre></div>
</div>
</div>
<div class="section" id="configuration">
<h2>Configuration<a class="headerlink" href="#configuration" title="永久链接至标题">¶</a></h2>
<p>The default configuration directory is /etc/toughradius</p>
<ul class="simple">
<li>Main configuration file: /etc/toughradius/radiusd.json</li>
<li>Logging configuration file: /etc/toughradius/radiusd.json</li>
<li>Nas Client configuration file: /etc/toughradius/clients.json</li>
<li>Radius protocol dictionary file directory: /etc/toughradius/dictionarys</li>
</ul>
</div>
<div class="section" id="startup">
<h2>Startup<a class="headerlink" href="#startup" title="永久链接至标题">¶</a></h2>
<p>Start authentication, accounting, and API Server on one process</p>
<div class="highlight-python"><div class="highlight"><pre>gtrcli radiusd
</pre></div>
</div>
<p>Launching authentication services only</p>
<div class="highlight-python"><div class="highlight"><pre>gtrcli auth
</pre></div>
</div>
<p>Launching accounting services only</p>
<div class="highlight-python"><div class="highlight"><pre>gtrcli acct
</pre></div>
</div>
<p>Launching API Server  only</p>
<div class="highlight-python"><div class="highlight"><pre>gtrcli apiserv
</pre></div>
</div>
</div>
<div class="section" id="upgrade">
<h2>Upgrade<a class="headerlink" href="#upgrade" title="永久链接至标题">¶</a></h2>
<p>develop version</p>
<div class="highlight-python"><div class="highlight"><pre>gtrcli upgrade --develop
</pre></div>
</div>
<p>stable version</p>
<div class="highlight-python"><div class="highlight"><pre>gtrcli upgrade --stable
</pre></div>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../index.html">內容目录</a></h3>
  <ul>
<li><a class="reference internal" href="#">Quick start</a><ul>
<li><a class="reference internal" href="#install">Install</a></li>
<li><a class="reference internal" href="#configuration">Configuration</a></li>
<li><a class="reference internal" href="#startup">Startup</a></li>
<li><a class="reference internal" href="#upgrade">Upgrade</a></li>
</ul>
</li>
</ul>

  <h4>上一个主题</h4>
  <p class="topless"><a href="../index.html"
                        title="上一章">TOUGHRADIUS - Beautiful open source RadiusServer</a></p>
  <h4>下一个主题</h4>
  <p class="topless"><a href="configuration.html"
                        title="下一章">Configuration</a></p>
  <h3>本页</h3>
  <ul class="this-page-menu">
    <li><a href="../sources/manual/quickstart.txt"
           rel="nofollow">显示源代码</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>快速搜索</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="转向" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    输入相关的术语，模块，类或者函数名称进行搜索
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>导航</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="总目录"
             >索引</a></li>
        <li class="right" >
          <a href="configuration.html" title="Configuration"
             >下一页</a> |</li>
        <li class="right" >
          <a href="../index.html" title="TOUGHRADIUS - Beautiful open source RadiusServer"
             >上一页</a> |</li>
        <li><a href="../index.html">toughradius 5.0 文档</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; 版权所有 2017, jamiesun.
    </div>
  </body>
</html>